import AdAdapter from "../adapter/core/AdAdapter";
import SDKBase from "../core/SDKBase";
import { SDKState } from "../SDKDefine";
export default class SDKAd extends SDKBase {
    protected _adUnitId: string = ''
    //提前加载，加载完是否显示。
    protected _isDirectShow: boolean = false;

    protected _state: SDKState = SDKState.CLOSE;

    protected _logicState: SDKState = SDKState.CLOSE;

    protected instance: AdAdapter

    setAdUnitId(id: string) {
        this._adUnitId = id;
    }

    setState(s: SDKState) {
        this._state = s;
    }

    getState() {
        return this._state;
    }
    /**
     * 
     * @param isDirectShow 加载后是否直接播放
     */
    protected setDirectShow(isDirectShow: boolean = false) {
        this._isDirectShow = isDirectShow;
    }

    has() {
        return this.sdk != undefined && this._adUnitId != undefined;
    }

    open(param?: any) {

    }

    close() {

    }

    preload(logicState: SDKState) {

    }

}
